x86-64: properly handle alias mappings beyond _end
authorJan Beulich <jbeulich@novell.com>
Thu, 14 Jul 2011 08:26:13 +0000 (09:26 +0100)
committerJan Beulich <jbeulich@novell.com>
Thu, 14 Jul 2011 08:26:13 +0000 (09:26 +0100)
commitd0ae97d4136e0e2163c7f559a077d66947c3c2dd
tree17704d5d2bac3011ed00b724ce6326bc4114768a
parent7844f90abd551f6d5cd9b670b5ed8a4683258a21
x86-64: properly handle alias mappings beyond _end

Changeset 19632:b0966b6f5180 wasn't really complete: The Xen image
mapping doesn't end at _end, but a full 16Mb gets mapped during boot
(and never got unmapped so far), hence all of this space was subject
to alias mappings when it comes to cache attribute changes. Unmap all
full large pages between _end and the 16Mb boundary, and include all
other pages beyond _end when checking for aliases.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm.c
xen/arch/x86/setup.c
xen/include/asm-x86/x86_64/page.h